package com.whxd.smarthome.core.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.whxd.smarthome.core.entity.DhDeviceChannel;
public interface DhDeviceChannelDao extends JpaRepository<DhDeviceChannel, Long> {
	
	@Query("from DhDeviceChannel where deviceId = ?1")
	List<DhDeviceChannel> getChannelsByDeviceId(String deviceId);
	
}
